package org.codefinger.dao.impl.sql;

import org.codefinger.dao.impl.SQLVisitor;

public class IValueItem {

	private String		name;

	private Expression	exp;

	public IValueItem(String name, Expression exp) {
		this.name = name;
		this.exp = exp;
	}

	public void visitPreffix(SQLVisitor visitor) {
		visitor.appendSQL(name);
	}

	public void visitExp(SQLVisitor visitor) {
		exp.visit(visitor);
	}

	public String getName() {
		return name;
	}

}
